<?php

class User extends AppModel {

    public $name = "User";
    public $actsAs = array('Acl' => array('type' => 'requester'));
    public $belongsTo = array('Group');

    public function parentNode() {
        if (!$this->id && empty($this->data)) {
            return null;
        }
    }

    public $virtualFields = array(
        'nombreCompleto' => 'CONCAT(User.name, " ", User.last_name)'
    );

}

?>